import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from '@/view/home.vue';
import CardPass from '@/view/cardPass.vue';
import Pay from '@/view/pay.vue';
import CardBuy from '@/view/cardBuy.vue'
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/cardpass',
        name: 'cardpass',
        component: CardPass
    },
    {
        path: '/self',
        name: 'self',
        component: Pay
    },
    {
        path: '/cardbuy',
        name: 'cardbuy',
        component: CardBuy
    },
]


const router = createRouter({
    history: createWebHistory(),
    routes
})


export default router